/**
 * @description 广告
 */
//公用样式 
require('../../assets/css/index.less');
// 当前页面样式
require('./advertisement.less');

// 工具函数 utils
const dom = require('../../utils/dom');

// DOM加载事件
dom.ready(function() {

    var count = document.querySelector(".countdown");
    var skip = document.querySelector(".skip");
    skip.addEventListener("click", function() {
        location.href = "./login.html"
    })
    var num = 5;
    var timer = setInterval(() => {
        num--
        count.innerHTML = num;
        num == 0 ? location.href = "./login.html" : none
    }, 1000)
})